<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>竞拍品列表</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
<!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right"><a href="#" title="注销">注销</a></div>
  </div>
    <form id="myform" method="post" action="${pageContext.request.contextPath}/do/list">
  <div class="forms">
        <label for="name">名称</label>
        <input name="name" type="text" class="nwinput" id="name" value="${name}"/>
        <label for="names">描述</label>
        <input name="desc" type="text" id="names" class="nwinput" value="${desc}"/>
        <label for="time">开始时间</label>
        <input name="start" type="text" id="time" class="nwinput" value="${start}"/>
        <label for="end-time">结束时间</label>
        <input name="end" type="text" id="end-time" class="nwinput" value="${end}"/>
        <label for="price">起拍价</label>
        <input name="startPrice" type="text" id="price" class="nwinput" value="${startPrice}"/>
        <input name="pageNo" id="pageNo" type="hidden">
    <input type="submit"  value="查询" class="spbg buttombg f14  sale-buttom"/>
  </div>
        <form>
  <div class="items">
      <ul class="rows even strong">
        <li>名称</li>
        <li class="list-wd">描述</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="borderno">操作</li>
      </ul>
      <c:forEach items="${page.list}" var="ac">
      <ul class="rows even">
        <li><a href="国书" title="">${ac.auctionName}</a></li>
        <li class="list-wd">${ac.auctionDesc}</li>
        <li><fmt:formatDate value="${ac.auctionStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li><fmt:formatDate value="${ac.auctionEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li>${ac.auctionStartPrice}</li>
<%--        <li class="borderno red"><a href="#">竞拍</a></li>--%>
          <li class="borderno red">
              <a href="#" title="竞拍" onclick="dele();">修改</a>|
              <a href="#" title="竞拍" onclick="abc();">删除</a>
          </li>
      </ul>
      </c:forEach>
    <div class="page">
        <a href="javascript:chagePage(1);" >首页</a>
        <c:forEach begin="1" end="${page.totalPageCount}" var="item">
            <a href="javascript:chagePage(${item});"
               <c:if test="${page.currPageNo==item}">style="color: red"</c:if>
            >${item}</a>

        </c:forEach>
        <a href="javascript:chagePage(${page.totalPageCount});" title="">末页</a>
<%--        <a href="#" title="">首页</a>--%>
<%--        <a href="#" title="">上一页</a>--%>
<%--        <span class="red">前5页</span>--%>
<%--        <a href="#" title="">1</a> --%>
<%--        <a href="#" title="">2</a> --%>
<%--        <a href="#" title="">3</a> --%>
<%--        <a href="#" title="">4</a>--%>
<%--        <a href="#" title="">5</a> --%>
<%--        <a href="#" title="">下一页</a>--%>
<%--        <a href="#" title="">尾页</a> --%>
      </div>
  </div>
<!-- main end-->
</div>
<script src="${pageContext.request.contextPath}/js/jquery-1.8.3.js"></script>
<script>
    function chagePage(pageNo) {
        //页码隐藏域赋值
        $("#pageNo").val(pageNo)
        $("#myform").submit();//提交表单
    }
</script>
</body>
</html>
